package com.doudou.pay.helper.commons;

import com.doudou.pay.helper.server.protoco.ProtocoConsts;

/**
 * 请求返回bean
 *
 */
public class JsonResult{
	
	private int code;			// 返回码
	private String define;		// 返回信息
	public Object result;		// 返回数据

	public JsonResult(){
		this.define = ProtocoConsts.FAIL_DEFINE;
		this.code = ProtocoConsts.FAIL;
		this.result = new RespResult();
	}
	
	public JsonResult(int code){
		this.code = code;
	}
	
	public int getCode() {
		return code;
	}

	public JsonResult setCode(int code) {
		this.code = code;
		return this;
	}

	public String getDefine() {
		return define;
	}

	public JsonResult setDefine(String define) {
		this.define = define;
		return this;
	}

	public Object getResult() {
		return result;
	}

	public JsonResult setResult(Object result) {
		this.result = result;
		return this;
	}

}
